package org.chen.practice.middle;

/**
 * @Author chen
 * @Date 2023/7/16 22:54
 */
public class ListNode {
    int val;
    ListNode next;
    ListNode() {}
    ListNode(int val) { this.val = val; }
    ListNode(int val, ListNode next) { this.val = val; this.next = next; }

    ListNode getNext(){
        return this.next;
    }

    public int getVal() {
        return this.val;
    }
}
